<%inherit file="/base.html"/>

<%def name="main_heading()">${c.main_heading}</%def>

<%def name="toolbar()">
	${h.select_month('month', c.month, class_='active-select')}
	<a href="${h.url_gen(month='$id')}" class="hidden-url"></a>
	${h.dropdown('district', c.district_id, c.districts, class_='active-select')}
	<a href="${h.url_gen(district='$id')}" class="hidden-url"></a>
	${h.print_version()}
</%def>

<%def name="content()">

<table class="data-table">
	<tr>
		<th>${_('Born')}</th>
		<th>${_('Person|Name')}</th>
		<th>${_('Division')}</th>
		<th>${_('Position')}</th>
	</tr>
	% for employee in c.employees:
	<tr>
		<td class="center-aligned">${h.format_date(employee.born, 'dd.MM.YYYY')}</td>
		<td class="left-aligned">${employee}</td>
		<td class="left-aligned">${employee.division}</td>
		<td class="left-aligned">${employee.position}</td>
	</tr>
	% endfor
</table>

</%def>